package org.putrpctorest.parameter.impl;

import java.util.ArrayList;
import java.util.List;

public class Correspondences {
	
	List<CORRESPONDENCE> correspondences = new ArrayList<CORRESPONDENCE>();
	
	public Correspondences(List<CORRESPONDENCE> correspondences) {
		this.correspondences = correspondences;
	}
	
	public boolean has(CORRESPONDENCE otherCorrespondence) {
		for(CORRESPONDENCE correspondence:correspondences) {
			if (otherCorrespondence == correspondence) {
				return true;
			}
		}
		return false;
	}

}
